package com.ys.erp.entity.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.ys.erp.entity.data.bean.Employee;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Pattern;

import java.util.List;
import java.util.Map;

/**
 * @author lwj
 * @date 2023/4/8
 */

public interface IEmployeeService extends IService<Employee> {

    Map<Long, Employee> getEmpMapByEmpIdList(List<Long> empList);

    Employee getEmpByPhone(@NotBlank @Pattern(regexp = "^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$", message = "手机号码格式不合法") String phone);
}
